package com.loie.xcx.comm;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义全局异常类
 *
 * @author zhl
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CustomException extends RuntimeException {

    private Integer code;
    private String errorMessage;

    public CustomException(Integer code, String message) {
        this.errorMessage = message;
        this.code = code;
    }
}

